package com.itrip.service.impl;

import com.itrip.dao.ex.UserMapper;
import com.itrip.pojo.ItripUser;
import com.itrip.vo.user.LoginVo;
import com.itrip.service.UserService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Service
public class UserServiceImpl implements UserService {

    @Resource
    UserMapper userMapper;

    @Override
    public ItripUser loginCheck(LoginVo loginVo) {
        return userMapper.loginCheck(loginVo);
    }

    @Override
    public Integer userRegist(ItripUser itripUser) {
        return userMapper.userRegist(itripUser);
    }

    @Override
    public Integer getCountOfUser(String userCode) {
        return userMapper.getCountOfUser(userCode);
    }
}
